﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace File.Api.Models
{
    public class QCOrderDetailModel
    {
        /// <summary>
        /// 检验单
        /// </summary>
        public string OrderId { get; set; }

        /// <summary>
        /// 任务编号
        /// </summary>
        public string Code { get; set; }

        public string OrgId { get; set; }

        public string Id { get; set; }

        public DateTime? CreateTime { get; set; }

        public decimal SendQty { get; set; }

        /// <summary>
        /// 工厂编号（3306，3321）
        /// </summary>
        public string OrgCode { get; set; }

        /// <summary>
        /// 工单
        /// </summary>
        public string WorkId { get; set; }

        public string WorkCode { get; set; }

        public decimal? WorkQty { get; set; }

        /// <summary>
        /// 销售单
        /// </summary>
        public string SaleCode { get; set; }

        public string SaleRow { get; set; }

        /// <summary>
        /// 客户
        /// </summary>
        public string CustomerId { get; set; }

        public string CustomerCode { get; set; }

        public string CustomerName { get; set; }

        /// <summary>
        /// 任务名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 工序 数据字典work_section
        /// </summary>
        public string WorkSection { get; set; }

        /// <summary>
        /// 工序分组
        /// </summary>
        public int SectionGroup { get; set; }

        /// <summary>
        /// 任务状态
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 任务结果
        /// </summary>
        public int Result { get; set; }

        /// <summary>
        /// 线体ID
        /// </summary>
        public string LineId { get; set; }

        public string LineCode { get; set; }

        public string LineName { get; set; }

        public string WorkShopName { get; set; }

        /// <summary>
        /// 产品
        /// </summary>
        public string ProductId { get; set; }

        public string ProductCode { get; set; }

        public string ProductName { get; set; }

        /// <summary>
        /// 外部系统编号
        /// </summary>
        public string ExtCode { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 执行时间
        /// </summary>
        public DateTime? OptTime { get; set; }

        public string TaskId { get; set; }

        /// <summary>
        /// 送检人
        /// </summary>
        public string SendOrderUserId { get; set; }

        /// <summary>
        /// 送检工位
        /// </summary>
        public string WorkStageId { get; set; }

        /// <summary>
        /// 裸灯ID
        /// </summary>
        public string BomProductCode { get; set; }

        /// <summary>
        /// 裸灯 数量
        /// </summary>
        public decimal BomProductQty { get; set; }

        /// <summary>
        ///  裸灯数量单位
        /// </summary>
        public string BomProductUnit { get; set; }
    }
}
